package com.example.youjingjing.electronicbalance.presenter;


import com.example.youjingjing.electronicbalance.model.RegisterModel;
import com.example.youjingjing.electronicbalance.model.RegisterModelIml;
import com.example.youjingjing.electronicbalance.view.RegisterView;

/**
 * Created by youjingjing on 2017/7/19.
 */

public class RegisterPresenter extends BasePresenterIml<RegisterView> {

    private RegisterModel registerModel;

    public RegisterPresenter() {
        registerModel = new RegisterModelIml();
    }

    public void register(String username, String password,String ver){
        registerModel.register(username, password, ver,new RegisterModel.OnRegisterResultListener() {
            @Override
            public void onSuccess(String msg) {

            }

            @Override
            public void onFailure(String msg) {

            }
        });
    }
}
